package com.qf.nacos;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
// @EnableEurekaClient  // 代表当前服务注册到Eureka上,省略的
@EnableDiscoveryClient  // 代表当前服务注册达到注册中心上.(支持Eureka,也支持其他注册中心,Eureka,Nacos,Zookeeper,Console)
@MapperScan(basePackages = "com.qf.nacos.mapper")
public class ProducerStarterApp {
    public static void main(String[] args) {
        SpringApplication.run(ProducerStarterApp.class,args);
    }
}
